package messages;

import java.io.Serializable;

public class Message implements Serializable {
    public enum MSG_TYPE{
        MSG_UNKNOWN,
        MSG_LOGIN_REQ,
        MSG_LOGIN_ACK,
        MSG_REGISTER_REQ,
        MSG_REGISTER_ACK,
        MSG_UPINFO_REQ,
        MSG_UPINFO_ACK,
        MSG_FLIGHT_QUERY_REQ,
        MSG_FLIGHT_PART_QUERY_REQ,
        MSG_FLIGHT_PART_QUERY_ACK,
        MSG_FLIGHT_QUERY_ACK,
        MSG_REFUND_REQ,
        MSG_REFUND_ACK,
        MSG_ORDER_INSERT_REQ,
        MSG_ORDER_INSERT_ACK,
        MSG_ORDER_QUERY_REQ,
        MSG_ORDER_QUERY_ACK,
        MSG_ADMIN_LOGIN_REQ,
        MSG_ADMIN_LOGIN_ACK,
        MSG_FLIGHT_QUERY_ACK1,
        MSG_FLIGHT_QUERY_REQ1,
        MSG_FLIGHT_QUERY_REQ2,
        MSG_FLIGHT_QUERY_ACK2,
        MSG_UPADMINFO_REQ,
        MSG_UPADMINFO_ACK,
        MSG_ADMIN_INFOR_QUERY_ACK,
        MSG_ADMIN_INFOR_QUERY_REQ,
        MSG_DE_ORDER_REQ,
        MSG_DE_ORDER_ACK,
        MSG_REF_USER_ORDER_QUERY_ACK,
        MSG_REF_USER_ORDER_QUERY_REQ,
        MSG_USER_ORDER_QUERY_REQ2,
        MSG_USER_ORDER_QUERY_ACK2,
        MSG_USER_ORDER_QUERY_ACK,
        MSG_USER_ORDER_QUERY_ACK1,
        MSG_USER_ORDER_QUERY_REQ,
        MSG_USER_ORDER_QUERY_REQ1,
        MSG_USER_ORDER_REFUND_ACK,
        MSG_USER_ORDER_REFUND_REQ,
        MSG_PASSENGER_INFOR_QUERY_REQ,
        MSG_PASSENGER_INFOR_QUERY_ACK,
        MSG_ADD_FLIGHT_TICKET_REQ,
        MSG_ADD_FLIGHT_TICKET_ACK,
        MSG_TICKET_DELETE_REQ,
        MSG_TICKET_DELETE_ACK,
        MSG_TICKET_QUERY_ACK1,
        MSG_TICKET_QUERY_REQ1,
        MSG_TICKET_QUERY_ACK,
        MSG_TICKET_QUERY_REQ,
        MSG_TICKET_UPDATE_REQ,
        MSG_TICKET_UPDATE_ACK,
        MSG_ADD_FLIGHTS_REQ,
        MSG_ADD_FLIGHTS_ACK,
        MSG_DEFLIINFO_REQ,
        MSG_DEFLIINFO_ACK,
        MSG_UPFLIINFO_REQ,
        MSG_SEARFLI_REQ,
        MSG_SEARFLI_ACK,
        MSG_ADDRESS_QUERY_REQ,
        MSG_QRESPONE_ACK, MSG_QRESPONE_REQ, MSG_ADDRESS_QUERY_ACK
    }
    private MSG_TYPE msg_type = MSG_TYPE.MSG_UNKNOWN;
    public Message(MSG_TYPE msg_type) {
        this.msg_type  = msg_type;
    }
    public MSG_TYPE getMsg_type() {
        return msg_type;
    }
}
